package interviewSearch

import (
	"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type InterviewSearchRouter struct {
}

// InitInterviewSearchRouter 初始化 interviewSearch表 路由信息
func (s *InterviewSearchRouter) InitInterviewSearchRouter(Router *gin.RouterGroup) {
	interviewSearchsRouter := Router.Group("interviewSearchs").Use(middleware.OperationRecord())
	interviewSearchsRouterWithoutRecord := Router.Group("interviewSearchs")
	var interviewSearchsApi = v1.ApiGroupApp.InterviewSearchApiGroup.InterviewSearchApi
	{
		interviewSearchsRouter.POST("createInterviewSearch", interviewSearchsApi.CreateInterviewSearch)             // 新建interviewSearch表
		interviewSearchsRouter.DELETE("deleteInterviewSearch", interviewSearchsApi.DeleteInterviewSearch)           // 删除interviewSearch表
		interviewSearchsRouter.DELETE("deleteInterviewSearchByIds", interviewSearchsApi.DeleteInterviewSearchByIds) // 批量删除interviewSearch表
		interviewSearchsRouter.PUT("updateInterviewSearch", interviewSearchsApi.UpdateInterviewSearch)              // 更新interviewSearch表
	}
	{
		interviewSearchsRouterWithoutRecord.GET("findInterviewSearch", interviewSearchsApi.FindInterviewSearch)       // 根据ID获取interviewSearch表
		interviewSearchsRouterWithoutRecord.GET("getInterviewSearchList", interviewSearchsApi.GetInterviewSearchList) // 获取interviewSearch表列表
	}
}
